lib: Add ot_journal_* helper macros
authorJonathan Lebon <jonathan@jlebon.com>
Tue, 16 Apr 2019 21:06:01 +0000 (17:06 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 24 Apr 2019 21:38:24 +0000 (21:38 +0000)
commit5464535205261308d020bbe0e2a08962f78ab27e
tree8ac969a52a30930fc37ef8cee75511fb278e363e
parentd69214ade3d5b187ebfbb791d7cfb36155c4f8dd
lib: Add ot_journal_* helper macros

Rather than wrapping each instance of `sd_journal_*` with
`HAVE_SYSTEMD`, let's just add some convenience macros that are just
no-op if we're not compiling with systemd.

Closes: #1841
Approved by: cgwalters
src/libostree/ostree-fetcher-util.c
src/libostree/ostree-repo-pull.c
src/libostree/ostree-sysroot-deploy.c
src/libotutil/otutil.h